<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>边框线</title>

  <style>
    div {
      width: 200px;
      height: 50vw;
      background-color: pink;

      border: 1vw solid #f60;
      border-top: 3vw dashed #f00;
      border-right: 3vw dotted green;

      /* 内减：避免添加border撑大尺寸 */
      box-sizing: border-box;
    }
  </style>

</head>
<body>
  <div>边框线</div>
</body>
</html>